<?php
	include_once "config.php";
	include_once "modules.php";
	include_once "include/db.php";
	include_once "include/params.php";

	$g_params = array(
		'm'			=> "home"
	);
	paramsFromGet($g_params);

	$maindb = new CDB();
	if(!$maindb->connect())
		die("impossibile connettersi al db");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DBCM v0.1</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="dom.js" type="text/javascript"></script>
<script language="javascript" src="ajax.js" type="text/javascript"></script>
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColHybLtHdr #sidebar1 { padding-top: 30px; }
.twoColHybLtHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it may need to avoid several bugs */
</style>
<![endif]-->
</head>

<body class="twoColHybLtHdr">

<div id="container">
	<div id="header">
		<h1>DataBase Content Manager</h1>
    <!-- end #header -->
	</div>
	<div id="sidebar1">
	<?php include "mnu_sidebar.php"; ?>
	<!-- end #sidebar1 --></div>
	<div id="mainContent">
	<?php display_module($g_params['m']); ?>
		<!-- end #mainContent --></div>
	<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
	<br class="clearfloat" />
	<div id="footer">
		<p>Footer</p>
	<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
